package com.dslcode.cloud.common.utils;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * Created by Administrator on 2017/8/21.
 */
@Data
public class AppPage<T> implements Serializable {

	private int pageNo = 1; // 当前页码
	private int pageSize = 10; // 页面大小
	private long count;// 总记录数
	private List<T> list = new ArrayList<T>();

	public AppPage(int pageNo, int pageSize, long count, List<T> list) {
		this.pageNo = pageNo;
		this.pageSize = pageSize;
		this.count = count;
		this.list = list;
	}

	public AppPage(int pageNo, int pageSize, long count) {
		this.pageNo = pageNo;
		this.pageSize = pageSize;
		this.count = count;
	}

	public AppPage() {
	}
}
